

function testOutOfRange(myAge) {
    if(myAge > 110) 
        throw new Error.argumentOutOfRange(
                    'myAge',  //parameter name
                    myAge,    //parameter value
                    'You are lying' //message
                    );
}

function testargumentType(myAge) {    
    if(typeof(myAge) != 'number')
        throw new Error.argumentType(
                    'myAge', //parameter name
                    typeof(myAge), //actual type
                    'number',      //expected type
                    'Is not a number' //message
                    );
}



